package com.starchen.optimalselection.admin.model;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@ApiModel(description = "用户")
@TableName("sys_user")
public class AdminUser implements Serializable {
	
	private static final long serialVersionUID = 1L;

	@TableId(type = IdType.AUTO)
	private Integer id;

	@ApiModelProperty(value = "用户名")
	private String username;

    //@TableField(select = false)
	@ApiModelProperty(value = "密码")
	private String password;

	@ApiModelProperty(value = "昵称")
	private String nickName;

	@ApiModelProperty(value = "手机")
	private String phone;

	@ApiModelProperty(value = "头像地址")
	private String headUrl;

	@ApiModelProperty(value = "描述")
	private String description;

	@ApiModelProperty(value = "状态（1：正常 0：停用）")
	private Integer status;

	private Date createTime;

	private Date updateTime;

	@TableLogic  //逻辑删除 默认效果 0 没有删除 1 已经删除
	private Integer isDeleted;
}

